/**
 * @Author: Your name
 * @Date:   2024-03-07 16:00:40
 * @Last Modified by:   Your name
 * @Last Modified time: 2024-03-08 11:54:54
 */
// pages/api/data.ts  

import type { NextApiRequest, NextApiResponse } from 'next';

export default async (req: NextApiRequest, res: NextApiResponse) => {
    // 处理请求逻辑  
    const data = { message: 'Hello from Next.js API route!' };

    // 发送响应  
    res.status(200).json(data);
};